
public class Example1 {

    public static void main(String[] args) {
        int[] num1 = {11, 12};
        int[] num2 = {21, 22, 23};
        int[] num3 = {31,33,35,36};

        int sum1 = 0;
        int sum2 = 0;
        int sum3 = 0;
        for (int i = 0; i < num1.length; i++) {
            sum1 += num1[i];
        }
        for (int i = 0; i < num2.length; i++) {
            sum2 += num2[i];
        }
        for (int i = 0; i < num3.length; i++) {
            sum3 += num3[i];
        }
        int sum = sum1 + sum2 + sum3;
        System.out.println("一组总销售额:" + sum1);
        System.out.println("二组总销售额:" + sum2);
        System.out.println("三组总销售额:" + sum3);
        System.out.println("总销售额:" + sum);

    }
}
